<?php
class PlantSeedVo extends SzAbstractMySqlVo
{

    private $userId;
    private $seedId;
    private $level;
    private $exp;

    /**
     * Initialize PlantSeedVo.
     *
     * @param $userId
     * @param $seedId
     * @param $level
     * @param $exp
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return PlantSeedVo
     */
    public function __construct($userId, $seedId, $level, $exp, $isInsert = false) {
        $this->userId = $userId;
        $this->seedId = $seedId;
        $this->level = $level;
        $this->exp = $exp;

        $this->isInsert = $isInsert;
        $this->voClassName = 'PlantSeedVo';
        $this->ormName = 'PlantSeed';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'seedId' => $this->getSeedId(),
            'level' => $this->getLevel(),
            'exp' => $this->getExp(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'seedId' => $this->getSeedId(),
            'level' => $this->getLevel(),
            'exp' => $this->getExp(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getSeedId(),
            $this->getLevel(),
            $this->getExp(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getSeedId()
    {
        return $this->seedId;
    }

    public function setSeedId($val)
    {
        $this->saveColumnStatus(1, $this->seedId);
        $this->seedId = $val;
    }

    public function getLevel()
    {
        return $this->level;
    }

    public function setLevel($val)
    {
        $this->saveColumnStatus(2, $this->level);
        $this->level = $val;
    }

    public function getExp()
    {
        return $this->exp;
    }

    public function setExp($val)
    {
        $this->saveColumnStatus(3, $this->exp);
        $this->exp = $val;
    }

}